package com.yuw.service;

import java.util.List;

public class Student {
    //属性
    private String stuName;
    private int stuNo;
    //行为

    public Student() {
    }

    public Student(int stuNo) {
        this.stuNo = stuNo;
    }

    public Student(String stuName) {
        this.stuName = stuName;
    }

    public Student(String stuName, int stuNo) {
        this.stuName = stuName;
        this.stuNo = stuNo;
    }

    public void doStudios(){
        System.out.println(this.stuName + "is a student...");
    }

    public void saveMe(){
        System.out.println("it has bean saved!");
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }
}
